package com.bangbang.blog.service.impl;

import com.bangbang.blog.pojo.TbCollect;
import com.bangbang.blog.mapper.TbCollectMapper;
import com.bangbang.blog.service.ITbCollectService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 收藏表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-08-12
 */
@Service
public class TbCollectServiceImpl extends ServiceImpl<TbCollectMapper, TbCollect> implements ITbCollectService {

    @Autowired
    private TbCollectMapper tbCollectMapper;

    @Override
    public void insert(TbCollect tbCollect) {
        tbCollectMapper.insert(tbCollect);
    }

    @Override
    public void delete(Long collId) {
        tbCollectMapper.deleteById(collId);
    }

    @Override
    public void select(Long collId) {
        tbCollectMapper.selectById(collId);
    }
}
